package com.steakliu.sun.proxy;

import com.steakliu.sun.proxy.api.ProxyFactory;

/**
 * 功能说明：
 * <p>
 * Original @Author: steakliu-刘牌, 2023-01-08  20:36
 * <p>
 * Copyright (C)2020-2022  steakliu All rights reserved.
 */
public abstract class BaseProxy<T> implements ProxyFactory {

    protected ObjectProxy<T> objectProxy;

    @Override
    public <T> void init(Class<T> clazz, ProxyConfig<T> proxyConfig) throws Exception {
        this.objectProxy = new ObjectProxy(clazz, proxyConfig.getConfig());
    }
}
